package com.itheima.anno;

import org.aspectj.lang.annotation.After;
import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Before;
import org.springframework.stereotype.Component;

@Component("myaspect")
@Aspect
public class MyAspect {


    @Before("execution(* com.itheima.anno.Target.show())")
    public void before(){
        System.out.println("长颈鹿");
    }

}
